/**
 * 
 */
package Consult.dao.model;

/**
 * @author zhaoyana
 *
 */
public enum UserType {
    ADMIN("管理员登录",0),
	STUDENT("学生",1);
	private String name;
	private int index;
	private UserType(String name,int index) {
		this.name=name;
		this.index=index;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getIndex() {
		return index;
	}
	public void setIndex(int index) {
		this.index = index;
	}
	public String getname() {
		return name;
	}
	public String toString() {
		return name;
	}
}
